package com.jugheadzhou.emrpoc.dto;

import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@ToString
public class SimpleContentItem {

	@Setter
	@JsonProperty("id")
	private String id;

	@JsonProperty("d")
	private Map<String, ContentItemData> data = new HashMap<>();
	
	
	public void putValue(String index, ContentItemData d) {
		data.put(index, d);
	}
	
	public void clearValues() {
		data.clear();
	}
}
